
import com.lin.pojo.Article;
import com.lin.service.ArticleService;
import com.lin.service.ArticleServiceImpl;
import com.lin.service.UserServiceImpl;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @ClassName Tsdas
 * @Description 描述
 * @Author LinZePeng
 * @Date 2021/5/12 23:42
 * @Version 1.0
 */
public class Tsdas {

	@Test
	public void oop(){
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
		ArticleServiceImpl serviceImpl = (ArticleServiceImpl) applicationContext.getBean("articleServiceImpl");
		Article article = serviceImpl.queryByArtID("1");
		Boolean aBoolean = serviceImpl.queryByArtId("1");
		System.out.println(article);
		System.out.println(aBoolean);
	}
}
